﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using System.IO;
using System.Text;
using System.Collections;
using System.Data;
using BSCMFF.Core.BusinessLayer;
using System.Data.SqlClient;
using Telerik.Web.UI;
using BSCMFF.Core;
//using BSCMFF.Core.MembershipDataProvider;

namespace BSCMFF.Web
{
    public partial class Default : MultiLanguagePage // System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            if (IsPostBack)
            {
                for (int i = 0; i < count; ++i)
                {
                    Create("postback");
                }
            }
        }

        private static int count = 0;

        protected void CreateLabel(object sender, EventArgs e)
        {
            ++count;
            Create("button");
        }

        private void Create(string s)
        {
            if (s == "postback")
            {
                for (int i = 0; i < count; ++i)
                {
                    Label l = new Label();

                    l.ID = i.ToString();
                    l.Text += i.ToString() + s + " ";
                    p.Controls.Add(l);
                }
            }
            else
            {
                Label l = new Label();
                int i = count = 1;
                l.ID = i.ToString();
                l.Text += i.ToString() + s + " ";
                p.Controls.Add(l);
            }
        }

    }


  
}